<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>MOON</title>
<link rel="stylesheet" th:href="@{/moon/css/bootstrap.css}" />
<link rel="stylesheet" th:href="@{/icon/css/font-awesome.min.css}" />
</head>
<body class="bg-a">
	<div class="container-fluid" id="app">
		<div class="row">
			<div class="col text-center bg-success text-white shadow">远程调用</div>
		</div>
		<div class="row mt-2">
			<div class="form-inline">
				<input type="text" class="form-control form-control-sm" id="mobile" placeholder="请输入手机号码"/>
				<input type="text" class="form-control form-control-sm ml-1" id="msg" placeholder="请输入短信验证码"/>
				<button class="btn btn-sm btn-success ml-1" onclick="check()">提交</button>
			</div>
		</div>
	</div>
	<!-- js -->
	<script th:src="@{/moon/js/jquery.js}"></script>
	<script th:src="@{/moon/js/vue.js}"></script>
	<script th:src="@{/layer/layer.js}"></script>
	<script th:inline="javascript">
		//
		function check(){
			$.post(
				"/remote/check",
				{
					mobile : $("#mobile").val(),
					msg : $("#msg").val()
				},
				function(data){
					alert(JSON.stringify(data));
				}
			);
		}
	</script>
</body>
</html>